﻿
@{
    ViewData["Title"] = "StatusCodePagesWithRedirects";

    var code = Convert.ToInt32(ViewData["code"]);
}

<h2 class="text-danger">StatusCode:@code</h2>